@extends('admin.main')
@section('content')
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">后台设置</strong>
                    /
                    <strong class="am-text-primary am-text-lg">操作</strong>
                    {{--/ <small></small>--}}
                </div>
            </div>
            <hr>
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-6">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            @if(count($homeSubs))
                                @foreach($homeSubs as $sub)
                            <a @if($sub->id!=2)
                               href="{{$prefix_url}}/?module={{$sub->id}}"
                               @else
                               href="{{$prefix_url}}"
                               @endif
                            >
                                <button type="button" class="am-btn am-btn-default">
                                    <span class="am-icon-file"></span>
                                    {{$sub->name}}
                                </button>
                            </a>
                                @endforeach
                            @endif
                        </div>
                    </div>
                </div>
            </div>

            <div class="am-g">
                <div class="am-panel am-panel-default" style="margin:20px;">
                    <div class="am-panel-hd">操作管理
                        <div class="am-btn-group am-btn-group-xs am-fr">
                            <a href="{{$prefix_url}}/create"
                               class="am-btn am-btn-default am-btn-xs am-text-secondary">
                                <span class="am-icon-plus"></span>
                                添加
                            </a>
                        </div>
                    </div>
                    @include('admin.auth.action.action')
                </div>
            </div>
        </div>
    </div>
@stop